package demo06.Example;

public class ChocolateController {
	public static void main(String args[]) {
		ChocolateBoiler boiler = ChocolateBoiler.getInstance();
		boiler.fill();
		boiler.boil();
		boiler.drain();
		System.out.println(boiler);
		// 将返回现有实例
		ChocolateBoiler boiler2 = ChocolateBoiler.getInstance();
		boiler.fill();
		boiler.boil();
		boiler.drain();
		System.out.println(boiler2);
		
/*		独特的巧克力锅炉实例
		巧克力锅炉返回实例
		demo06.Example.ChocolateBoiler@42aab87f
		
		巧克力锅炉返回实例
		demo06.Example.ChocolateBoiler@42aab87f*/
	}

}
